<?php
namespace Home\Model;
use Think\Model\ViewModel;
class UserViewModel extends ViewModel {
    public $viewFields = array(     
        'user'=>array('id','name','quit_id'),  //查询的主表   
        'power'=>array('title', '_on'=>'user.pwdid=power.id') //_on多表联查条件    
    );
}